'''
金融项目用户管理模块的接口
'''
def register(baserequests,url,data):
    '''
    注册接口
    :param baserequests: BaseRequests的实例
    :param url: http://192.168.2.36:8089/
    :param data: 注册的数据
    :return: 响应
    '''
    r = baserequests.post(url + 'futureloan/mvc/api/member/register',data=data)
    return r

def list(baserequests,url):
    r = baserequests.post(url + 'futureloan/mvc/api/member/list')
    return r

def login(baserequests,url,data):
    '''
    登录接口
    :param baserequests:BaseRequests的实例
    :param url:http://192.168.2.36:8089/
    :param data:登录的数据
    :return:响应
    '''
    r = baserequests.post(url + 'futureloan/mvc/api/member/login',data=data)
    return r

def recharge(baserequests,url,data):
    '''
    充值接口
    :param baserequests:
    :param url:http://192.168.2.36:8089/
    :param data:登录数据
    :return:响应
    '''
    r = baserequests.post(url +'futureloan/mvc/api/member/recharge',data=data)
    return r